﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DAO;

namespace TAM_SPORT
{
    public partial class AllFormMenu : TAM_SPORT.FormBase
    {
        public AllFormMenu()
        {
            InitializeComponent();
            if (LoginDao.adminFlag)
            {
                ExpensesGrgoup.Enabled = true;
                propertiesGroup.Enabled = true;
                ReportGroup.Enabled = true;
                SaleReporttoolStripMenuItem.Enabled = true;
            }
            else
            {
                ExpensesGrgoup.Enabled = false;
                propertiesGroup.Enabled = false;
                ReportGroup.Enabled = false;
                SaleReporttoolStripMenuItem.Enabled = false;
            }
        }

        private void btnCustomerList_Click(object sender, EventArgs e)
        {
            CustomerList f = new CustomerList();
            f.ShowDialog();
        }

        private void btnWarningList_Click(object sender, EventArgs e)
        {
            WarningList f = new WarningList();
            f.ShowDialog();
        }

        private void CustomerMenuTrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            
        }

        private void addNew_Click(object sender, EventArgs e)
        {
            Purchase f = new Purchase();
            f.ShowDialog();
        }

        private void cusMe_Click(object sender, EventArgs e)
        {
            CustomerList f = new CustomerList();
            f.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Purchase f = new Purchase();
            f.ShowDialog();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            ReportDetail f = new ReportDetail();
            f.ShowDialog();
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            CustomerDayOnly f = new CustomerDayOnly();
            f.ShowDialog();
        }

        private void AddNewDay_Click(object sender, EventArgs e)
        {
            PurchaseDay f = new PurchaseDay();
            f.ShowDialog();
        }

        private void báoCáoDanhSáchHọcViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportDetail f = new ReportDetail();
            f.ShowDialog();
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            WarningList f = new WarningList();
            f.ShowDialog();
        }
    }
}
